<template>
    <div class='homePage'>
        <!-- 头部宣传视频 -->
        <BannerVideo/>
        <!-- 业务概览 -->
        <Business/>
        <!-- 公司动态 -->
        <Dynamics/>
    </div>
</template>

<script setup lang="ts">
import BannerVideo from './modules/BannerVideo/index.vue'
import Business from './modules/Business/index.vue'
import Dynamics from './modules/Dynamics/index.vue'
import { SetCookie, GetCookie } from '@/utils/Cookie'

// 保存页面滚动条位置
onMounted(()=>{
    window.onscroll = function() {
        var scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop;
        SetCookie("pageScrollTop", scrollTop);
    }
    document.documentElement.scrollTop = +GetCookie("pageScrollTop");
})
</script>

<style lang="scss">
.test{
    font-size: 20px;
}
</style>